package com.zt.ztyh.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zt.ztyh.dto.FundsCount;
import com.zt.ztyh.dto.FundsDto;
import com.zt.ztyh.dto.FundsUserDto;
import com.zt.ztyh.entity.User;
import com.zt.ztyh.entity.ZtyhFundsUser;
import com.zt.ztyh.vo.funds.FundsUserVo;

import java.math.BigDecimal;
import java.util.List;

/**
* @author JIASC
* @description 针对表【ztyh_funds_user】的数据库操作Service
* @createDate 2024-04-06 17:26:54
*/
public interface ZtyhFundsUserService extends IService<ZtyhFundsUser> {

    boolean addFunds(FundsDto fundsDto);

    Page<FundsUserVo> findByUser(FundsDto fundsDto);

    List<FundsCount> findbyfunds(Long fundsId);

    boolean updateFunds(FundsUserDto fundsUserDto);

    List<ZtyhFundsUser> findFunds(Long userId, Long fundsId);

    ZtyhFundsUser fundsUserById(Long id);

    User findUserInfo(Long uid);
}
